package com.atdel.demo05;


/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo05
 * @Author: Del
 * @CreateTime: 2025-03-04  12:03
 * @Description: TODO
 * @Version: 1.0
 */
public class TestClass {
    public static void main(String[] args) {
        // 创建电脑对象
        Computer computer = new Computer();

        // 创建各种设备对象
        USB smartPhone = new SmartPhone("智能手机");
        USB uPan = new UPan();


        computer.connect(smartPhone, "数据传输中...");



        computer.connect(uPan, "数据传输中...");

    }
}
